[C#] Get a domain name basing on the IP address
Posted
by Tony
on Stack Overflow
See other posts from Stack Overflow
or by Tony
Published on 2010-03-13T19:47:04Z
Indexed on
2010/03/13
19:55 UTC
Read the original article
Hit count: 216
hi, I need to get a domain name if I have an IP address (e.g. I type 209.85.129.103 and the program should find out that is the Google address)
As far as I've figured out is get the hostname:
IPHostEntry IpToDomainName = Dns.GetHostEntry("209.85.129.103");
string HostName = IpToDomainName.HostName; //it returns "fk-in-f103.1e100.net"
but it's not that I want. I don't know how to achieve that. Any ideas will be helpful
© Stack Overflow or respective owner